package com.example.ch01wwwssocom.service.impl;

import com.example.ch01wwwssocom.pojo.SysUser;
import com.example.ch01wwwssocom.service.UserService;
import org.springframework.stereotype.Service;

/***
 * @title UserServiceImpl
 * @description <description class purpose>
 * @author WeiShuo
 * @version 1.0.0
 * @create 2023/9/20 18:19
 **/
@Service
public class UserServiceImpl implements UserService {


    @Override
    public SysUser login(String username, String password) {

//        if(username.equals("admin")&&password.equals("123")){
//            return new SysUser("admin", "123");
//        }

        return new SysUser(username, password);
//        return null;
    }
}
